<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        div#div1{
            width: 100px;
            height:75px;
            background-color:yellow;
            border:1px solid black;
        }
        div#div2{
            transform:rotate(60deg);
            -ms-transform:rotate(60deg);
            -moz-transform: rotate(60deg);
            -webkit-transform:rotate(60deg);
            -o-transform: rotate(60deg);
        }
        .div3{
            text-align: center;
            border:2px solid;
            padding:10px 40px;
            background: #d1a066;
            width: 350px;
            border-radius: 25px;
            -moz-border-radius: 25px;
            box-shadow: 10px 10px 5px #888888;
        }

        .round{
            -moz-border-image:url(../source/img/border.png) 30 30 round;
            -webkit-border-image:url(../source/img/border.png) 30 30 round;
            -o-border-image:url(../source/img/border.png) 30 30 round;
            border-image:url(../source/img/border.png) 30 30 round;
        }
        .stretch{
            -moz-border-image:url(../source/img/border.png) 30 30 stretch ;
            -webkit-border-image:url(../source/img/border.png) 30 30 stretch ;
            -o-border-image:url(../source/img/border.png) 30 30 stretch ;
            border-image:url(../source/img/border.png) 30 30 stretch ;
        }
    </style>
</head>
<body>
    <div id="div1">你好。这是一个 div 元素。</div>
    <div id="div2">你好。这是一个 div 元素。</div>

    <br>
    <div class="div3">border-radius 属性允许您向元素添加圆角。</div>

    <div class="round">在这里，图片铺满整个边框。</div>
    <div class="stretch">在这里，图片被拉伸以填充该区域。</div>
    <p>这是我们使用的图片：</p>
    <img src="../source/img/border.png">
    <p>
        <b>注释：</b>Internet Explorer 不支持 border-image 属性。
    </p>
    <p>border-image 属性规定了用作边框的图片。</p>
</body>
</html>